package com.gym.code.config.admin.bean.table;

import java.util.ArrayList;
import java.util.List;

import com.gym.code.config.admin.bean.ColumnMappingBean;
import com.gym.code.config.admin.bean.method.MethodMappingBean;

/**
 * 
 * @author xinchun.wang
 * @email: 532002108@qq.com
 * @createTime 2015-4-11 下午2:30:19
 */
public class  TableMappingBean extends TableBaseMappingBean {
	
	public TableMappingBean(TableBaseMappingBean base){
		this.id = base.id;
		this.dbId = base.dbId;
		this.beanName = base.beanName;
		this.daoName = base.daoName;
		this.tableName = base.tableName;
		this.serviceName = base.serviceName;
	}
	
	/**
	 * bean字段列表
	 */
	private List<ColumnMappingBean> columnList;
	
	/**
	 * 方法列表
	 */
	private List<MethodMappingBean>  methodList;
	
	
	public List<ColumnMappingBean> getColumnList() {
		if (columnList == null) {
			columnList = new ArrayList<ColumnMappingBean>();
		}
		return columnList;
	}

	public List<MethodMappingBean> getMethodList() {
		if(methodList == null){
			methodList = new ArrayList<MethodMappingBean>();
		}
		return methodList;
	}


}
